import java.util.Scanner;

public class Test {
        public static void main(String[] args) {
            Scanner scanner = new Scanner(System.in);
            double d= scanner.nextDouble();
            if(d-(int)d>=0.5){
                System.out.println((int)d+1);
            }
            else{
                System.out.println((int)d);
            }

       }
}
